package cn.edu.neusoft.yuejian_02.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by jj on 2017/10/8.
 */

public class ActivityBean implements Parcelable {


    /**
     * activity_id : 1
     * club_id : 1
     * activity_name : 不知道干嘛
     * address : b347
     * time : 2017年8月31日19:37:21
     * cost : 40
     * renshu : 4
     * phonenumber : 347
     * intro : 347
     * photo : 20170905092248173.jpg
     * activitytype : 1
     */

    private int activity_id;
    private int club_id;
    private String activity_name;
    private String address;
    private String time;
    private int cost;
    private int renshu;
    private String phonenumber;
    private String intro;
    private String photo;
    private int activitytype;

    protected ActivityBean(Parcel in) {
        activity_id = in.readInt();
        club_id = in.readInt();
        activity_name = in.readString();
        address = in.readString();
        time = in.readString();
        cost = in.readInt();
        renshu = in.readInt();
        phonenumber = in.readString();
        intro = in.readString();
        photo = in.readString();
        activitytype = in.readInt();
    }

    public static final Creator<ActivityBean> CREATOR = new Creator<ActivityBean>() {
        @Override
        public ActivityBean createFromParcel(Parcel in) {
            return new ActivityBean(in);
        }

        @Override
        public ActivityBean[] newArray(int size) {
            return new ActivityBean[size];
        }
    };

    public void setActivity_id(int activity_id) {
        this.activity_id = activity_id;
    }

    public void setClub_id(int club_id) {
        this.club_id = club_id;
    }

    public void setActivity_name(String activity_name) {
        this.activity_name = activity_name;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public void setCost(int cost) {
        this.cost = cost;
    }

    public void setRenshu(int renshu) {
        this.renshu = renshu;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public void setActivitytype(int activitytype) {
        this.activitytype = activitytype;
    }

    public int getActivity_id() {
        return activity_id;
    }

    public int getClub_id() {
        return club_id;
    }

    public String getActivity_name() {
        return activity_name;
    }

    public String getAddress() {
        return address;
    }

    public String getTime() {
        return time;
    }

    public int getCost() {
        return cost;
    }

    public int getRenshu() {
        return renshu;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public String getIntro() {
        return intro;
    }

    public String getPhoto() {
        return photo;
    }

    public int getActivitytype() {
        return activitytype;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(activity_id);
        parcel.writeInt(club_id);
        parcel.writeString(activity_name);
        parcel.writeString(address);
        parcel.writeString(time);
        parcel.writeInt(cost);
        parcel.writeInt(renshu);
        parcel.writeString(phonenumber);
        parcel.writeString(intro);
        parcel.writeString(photo);
        parcel.writeInt(activitytype);
    }
}
